package com.common.service.impl;

import com.common.service.LoginService;
import org.springframework.stereotype.Service;


@Service("loginService")
public class LoginServiceImpl implements LoginService {



    @Override
    public boolean login(String username, String password) throws Exception {

        if ( "superuser".equalsIgnoreCase(username) && "123456".equalsIgnoreCase(password) ) {
            return true;
        }

        throw new RuntimeException("用户名或者密码不正确!");
    }
}
